package CB_C19;

import javafx.scene.control.*;

import javafx.scene.CustomNode;
import javafx.scene.Group;
import javafx.scene.Node;

/**displays height of the video
 * @defaultvalue 0
 */
public var info_height: Label;
/**displays width of the video
 * @defaultvalue 0
 */
public var info_width: Label;
/**displays the name of video if video is loaded
 * @defaultvalue "Please insert Media!"
 */
public var info_name : Label;

/**Info Created on 10.11.2009. <br>
 * <br>
 * Show alle Media Info(name,height,width) <br>
 * @author Sebastian Czekierski, Stefan Blumberger
 */
public class gui_Info extends CustomNode {
    override function create(): Node
    {
        return Group
        {
            content:
            [
                info_height = Label
                {
                    translateX: 0;
                    translateY: 5;
                    text: "Height: 0";
                    width : 80;
                }
                info_width = Label
                {
                    translateX: info_height.translateX + info_height.width +10;
                    translateY: 5;
                    text: "Width: 0";
                    width : 80;
                }
                info_name = Label
                {
                    translateX: info_width.translateX + info_width.width +10;
                    translateY: 5;
                    text:"Please Insert Media";
                    width :120;
                }
            ]
        }
    }
}

